package com.mk.admin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("t_notice")
public class NoticeEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;                // 主键ID
    private String name;            // 公告名称
    private String subName;         // 副标题
    private Integer status;         // 状态(0:禁用 1:启用)
    private String describe;        // 公告描述
    private Integer type;           // 公告类型
    private String typeName;        // 类型名称
    private String createTime;        // 创建时间
    private String startTime;         // 开始时间
    private String endTime;           // 结束时间
    @TableField(exist = false)
    private String currentTime;       // 当前时间(查询用)
    private Integer times;       // 浏览次数
    private Integer likes;       // 点赞
    private Integer collects;       // 收藏
    private Integer forwards;       // 转发
    private Integer sort;       // 排序
    private String campusCode;
    private String campusName;
    @TableField(exist = false)
    private String campus;
    @TableField(exist = false)
    private Integer num;       // 是取消还是点赞，收藏，只有点赞和收藏会有取消
    @TableField(exist = false)
    private String orderBy;
    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer size;
}
